package com.it.dao;

import com.it.domain.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {

    Integer SaveComment(Comment comment);

    List<Comment> getMainComment(Integer commType,Integer commTargetId);

    Integer DeleteComment(Comment comment);

    Integer DeleteRootComment(Comment comment);

    List<Comment> SelectByParentId(Comment comment);

    List<Comment> SelectRootId(Integer rootId,Integer commTargetId,Integer commType);
}
